package com.mgear.sms.ws;

public class ISmsWebServiceProxy implements com.mgear.sms.ws.ISmsWebService {
  private String _endpoint = null;
  private com.mgear.sms.ws.ISmsWebService iSmsWebService = null;
  
  public ISmsWebServiceProxy() {
    _initISmsWebServiceProxy();
  }
  
  public ISmsWebServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initISmsWebServiceProxy();
  }
  
  private void _initISmsWebServiceProxy() {
    try {
      iSmsWebService = (new com.mgear.sms.ws.SmsWebServiceLocator()).getSmsWebServiceImplPort();
      if (iSmsWebService != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)iSmsWebService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)iSmsWebService)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (iSmsWebService != null)
      ((javax.xml.rpc.Stub)iSmsWebService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.mgear.sms.ws.ISmsWebService getISmsWebService() {
    if (iSmsWebService == null)
      _initISmsWebServiceProxy();
    return iSmsWebService;
  }
  
  public java.lang.String sendBatch(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2) throws java.rmi.RemoteException{
    if (iSmsWebService == null)
      _initISmsWebServiceProxy();
    return iSmsWebService.sendBatch(arg0, arg1, arg2);
  }
  
  public java.lang.String sayHello(java.lang.String arg0) throws java.rmi.RemoteException{
    if (iSmsWebService == null)
      _initISmsWebServiceProxy();
    return iSmsWebService.sayHello(arg0);
  }
  
  public java.lang.String saveReply(java.lang.String arg0) throws java.rmi.RemoteException{
    if (iSmsWebService == null)
      _initISmsWebServiceProxy();
    return iSmsWebService.saveReply(arg0);
  }
  
  public java.lang.String saveReceipt(java.lang.String arg0) throws java.rmi.RemoteException{
    if (iSmsWebService == null)
      _initISmsWebServiceProxy();
    return iSmsWebService.saveReceipt(arg0);
  }
  
  public java.lang.String sendSingle(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2) throws java.rmi.RemoteException{
    if (iSmsWebService == null)
      _initISmsWebServiceProxy();
    return iSmsWebService.sendSingle(arg0, arg1, arg2);
  }
  
  public java.lang.String sendTimerSingle(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2) throws java.rmi.RemoteException{
    if (iSmsWebService == null)
      _initISmsWebServiceProxy();
    return iSmsWebService.sendTimerSingle(arg0, arg1, arg2);
  }
  
  public java.lang.String sendTimerBatch(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2) throws java.rmi.RemoteException{
    if (iSmsWebService == null)
      _initISmsWebServiceProxy();
    return iSmsWebService.sendTimerBatch(arg0, arg1, arg2);
  }
  
  
}